using System.Collections.Generic;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application;

[SugarTable("MessageRecord", "短信记录")]
[SysTable]
public class MessageRecord : EntityTenant
{
	/// <summary>
	/// 手机号
	/// </summary>
	public string PhoneNumber { get; set; }

	/// <summary>
	/// 模板类型
	/// </summary>
	public int Type { get; set; }

	/// <summary>
	/// 房间id
	/// </summary>
	public long? RoomId { get; set; }

	[SugarColumn(IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
	public List<string> Params { get; set; }

	/// <summary>
	/// 短信请求错误码，可参考腾讯短信文档
	/// </summary>
	public string? Code { get; set; }

	/// <summary>
	/// 短信请求错误描述
	/// </summary>
	public string? Message { get; set; }

	/// <summary>
	/// 短信唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	/// </summary>
	public string? RequestId { get; set; }
}
